package com.nuoniu.sibanyun.entity.crm.call;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 客户管理-外呼套餐基础信息
 * </p>
 *
 * @author 白强
 * @since 2022-05-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_call_base_setting_info")
@ApiModel(value="CrmCallBaseSettingInfo对象", description="客户管理-外呼套餐基础信息")
public class CrmCallBaseSettingInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "商品ID")
    @TableField("crm_goods_id")
    private Integer crmGoodsId;

    @ApiModelProperty(value = "商品名称")
    @TableField("crm_goods_name")
    private String crmGoodsName;

    @ApiModelProperty(value = "套餐金额")
    @TableField("base_charges")
    private BigDecimal baseCharges;

    @ApiModelProperty(value = "固定分钟数")
    @TableField("base_minutes")
    private Integer baseMinutes;

    @ApiModelProperty(value = "超出部分费率(元/分钟)")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "状态 0.未生效 1.已生效 2.已失效")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "申请时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "失效时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "续费方式 1：手动 2：自动")
    @TableField("renewal_type")
    private Integer renewalType;


}
